GtkFontChooserWidget: Use a better display name for the font
authorBehdad Esfahbod <behdad@gnome.org>
Fri, 15 Aug 2014 17:27:00 +0000 (17:27 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 15 Aug 2014 18:12:10 +0000 (14:12 -0400)
commitdd6c2391d2a1c63a7e0f91a7034043ea248ac991
treece1f97fbb47e78c55a5396ad8ace9073bfc6a6ef
parente0af2ba7c7f911bd618d6fba2b40e97398f0df2a
GtkFontChooserWidget: Use a better display name for the font

Instead of reconstructing a display name from the
PangoFontDescription, use the font family and face
objects, which have the original font. This lets us
get the names of fonts like Noto Sans CJK DemiLight
right, which would be shown as Noto Sans CJK SemiLight
when mangled via PangoFontDescription, since Pango
treats 'DemiLight' as an alias for the SemiLight weight.

https://bugzilla.gnome.org/show_bug.cgi?id=733832
gtk/gtkfontchooserwidget.c